<script src='/themes/admin/js/jquery-2.0.3.min.js'></script>
<script src='/themes/admin/js/jquery.mobile.custom.min.js'></script>
<script src="/themes/plugins/bootstrap/js/bootstrap.js"></script>
<script src="/themes/admin/js/typeahead-bs2.min.js"></script>
<script src="/themes/admin/js/ace-elements.min.js"></script>
<script src="/themes/admin/js/ace.min.js"></script>

<script src="/themes/plugins/fuelux/fuelux.spinner.min.js"></script>
<script src="/themes/admin/js/jquery.autosize.min.js"></script>
<script src="/themes/plugins/chosen/chosen.jquery.min.js"></script>
<script src="/themes/plugins/fileinput/js/fileinput.min.js"></script>
<script src="/themes/plugins/fileinput/js/fileinput_locale_zh.js"></script>
<script src="/themes/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="/themes/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="/themes/plugins/pcas/PCASClass.js"></script>
<!-- 自定义js -->
<script src="/themes/plugins/customer-file.js"></script>
<script src="/themes/plugins/common.js"></script>

<script><!-- 菜单展开 -->
var active = "${active!''}";
if(active.length>0){
    var obj = $("#"+active);
    obj.addClass("active");
    obj.parents("li").addClass("active open");
}

$('#spinner').ace_spinner({
    value: ${sort!0},
    min: 0,
    max: 100,
    step: 1,
    on_sides: true,
    icon_up: 'icon-plus smaller-75',
    icon_down: 'icon-minus smaller-75',
    btn_up_class: 'btn-success',
    btn_down_class: 'btn-danger'
});
$('textarea').autosize({
    append: "\n"
});
$(".chosen-select").chosen();
$(".num").onlyNum();
$(".double").onlyDouble();
function tipMsg(msg){
    $("#m-msg").html(msg);
    $("#modalMsg").modal("show");
}
$(".form_datetime").datetimepicker({
    autoclose: true,
    minView:2,
    language:'zh-CN'
});

var msg = "${tipMessage!}";
if(msg.length >0){
    tipMsg(msg);
}

</script>
